import request from '@/utils/request'
// 查询收藏列表
export function getCollectList(query) {
    return request({
        url: '/collection',
        method: 'get',
        params: query
    })
}
// 新增收藏
export function addCollect(data) {
    return request({
        url: '/collection',
        method: 'post',
        data: data
    })
}

// 删除收藏
export function delCollect(cid) {
    return request({
        url: '/collection/delete/' + cid,
        method: 'delete'
    })
}
